import request from "@/utils/request";
import { serviceModule } from "@/api/serviceModule.js";
// 币种
export function getCurrency() {
  return request({
    url: "/exchangeRate/options",
    method: "get",
  });
}

//option
export function getOption(params) {
  return request({
    url: "/dictionary/match",
    method: "get",
    params,
  });
}

//oss获取签名
export function getSignature(data) {
  return request({
    url: "/storage/signature/upload",
    method: "POST",
    data,
  });
}

// 店铺列表
export const getShop = (data) =>
  request({
    baseURL: serviceModule.base,
    url: "/v1/shop/drop-list",
    method: "post",
    data,
  });

// 站店列表
export const getSites = (params) =>
  request({
    baseURL: serviceModule.base,
    url: "/v1/platform/sites",
    method: "get",
    params,
  });
// 平台站点
export function getPlatform() {
  return request({
    baseURL: serviceModule.base,
    url: "/v1/platform/tree",
    method: "get",
  });
}


//获取公司主体
export function getAccountPrincipal(params) {
  return request({
    url: "/accountPrincipal/options",
    method: "get",
    params,
  });
}

//获取开发者账号
export function getTripartitePlatform(params) {
  return request({
    url: "/tripartitePlatform/options",
    method: "get",
    params,
  });
}

//第三方渠道管理列表
export function getChannelList(params) {
  return request({
    url: "/account/channel",
    method: "get",
    params,
  });
}

//子账号选择
export function getAccountOption(params){
  return request({
    url: "/account/subset/options",
    method: "get",
    params,
  });
}